<?php
/**
 * Created by IntelliJ IDEA.
 * User: kwan
 * Date: 2014/5/20
 * Time: 4:03
 * 所有controller继承这个类,以便一些全局化的操作
 */

class MY_Controller extends CI_Controller {
    public $currentSchool;
    public function __construct()
    {
        parent::__construct();
        $this->currentSchool=YimeTools::getCurrentSchool();
        $this->load->vars(
            array(
                'currentSchool'=>$this->currentSchool,
            )
        );

    }


} 